<?php

namespace App\Repositories;

use App\Models\Area;

class AreaRepository extends BaseRepository
{
    public function model()
    {
        return Area::class;
    }

    /**
     * 获取地区列表
     * Date: 2018/4/26
     * @author Tenny
     * @return \Illuminate\Database\Eloquent\Collection|static[]
     */
    public function getAreas()
    {
        $areas = $this->get();
        return $areas;
    }

    protected function serialization(array $attributes)
    {
        // TODO: Implement serialization() method.
    }
}